﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using Newtonsoft.Json;

namespace HyperWPF
{
    public static class OverallMiniTool
    {
        public static ObservableCollection<T> DeepCopy<T>(ObservableCollection<T> original)
        {
            var json = JsonConvert.SerializeObject(original);
            return JsonConvert.DeserializeObject<ObservableCollection<T>>(json);
        }
    }
}
